<?php
echo $a[form] ?>
	<table border="0" width="100%" cellspacing="0" cellpadding="0">		
		<tr>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
		</tr>
<?php
if ($messageStack->size('login') > 0)
{
?>
		<tr>
			<td><?php echo $messageStack->output('login'); ?></td>
		</tr>
		<tr>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
		</tr>
<?php
}

if ($cart->count_contents() > 0)
{
?>
		<tr>
			<td class="smallText"><?php echo $a[visitorcart] ?></td>
		</tr>
		<tr>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
		</tr>
<?php
}
?>
		<tr>
			<td width="49%" height="100%">
				<table class="logintable" width="100%" height="100%" cellspacing="0" cellpadding="2">
					<tr>
						<td class="componentheading"><b><?php echo $a[headiscust] ?></b></td>
					</tr>
					<tr>
						<td height="100%">
							<table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox">
								<tr class="infoBoxContents">
									<td height="100%">
										<input type="hidden" name="<?php echo $validate; ?>" value="1" />
										<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2">
											<tr>
												<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
											</tr>
											<tr>
												<td class="main" colspan="2"><?php echo $a[retcust] ?></td>
											</tr>
											<tr>
												<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
											</tr>
											<tr>
												<td class="main"><b><?php echo $a[username] ?></b></td>
												<td class="main"><?php echo $a[username_input] ?></td>
											</tr>
											<tr>
												<td class="main"><b><?php echo $a[password] ?></b></td>
												<td class="main"><?php echo $a[password_input] ?></td>
											</tr>
											<tr>
												<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
											</tr>
											<tr>
												<td class="smallText" colspan="2"><?php echo $a[forgotpassword] ?></td>
											</tr>
											<tr>
												<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
											</tr>
											<tr>
												<td colspan="2">
													<table border="0" width="100%" cellspacing="0" cellpadding="2">
														<tr>
															<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
															<td align="right"><?php echo $a[button_submit] ?></td>
															<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
														</tr>
													</table>
													<br>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		
		<tr>
			<td width="49%" height="100%">
				<table class="logintable" height="100%" width="100%" cellspacing="0" cellpadding="2">
					<tr>
						<td height="100%">
							<table height="100%" border="0" width="100%" cellspacing="0" cellpadding="2">
								<tr>
									<td class="componentheading"><b><?php echo $a[newcust] ?></b></td>
								</tr>
								<tr>	
									<td height="100%" valign="top">
										<table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox">
											<tr class="infoBoxContents">
												<td height="100%">
													<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2">
														<tr>
															<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
														</tr>
														<tr>
															<td class="main" valign="top"><?php echo $a[newcusttext] ?></td>
														</tr>
														<tr>
															<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
														</tr>
														<tr>
															<td>
																<table border="0" width="100%" cellspacing="0" cellpadding="2">
																	<tr>
																		<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
																		<td align="right"><?php echo $a[button_continue] ?></td>
																		<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
																	</tr>
																</table>
															</td>
														</tr>
													</table>
												</td>
											</tr>
										</table>
									</td>
								</tr>
					<?php
				// PWA BOF
				if (defined('PURCHASE_WITHOUT_ACCOUNT') && (PURCHASE_WITHOUT_ACCOUNT == 'ja' || PURCHASE_WITHOUT_ACCOUNT == 'yes')) {
				?>
								<tr>
									<td colspan="2" width="100%">
										<table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox">
											<tr class="infoBoxContents">
												<td>
													<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2">						
														<tr>
															<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
														</tr>
														<tr>
															<td class="main"><?php echo TEXT_GUEST_INTRODUCTION; ?></td>
														</tr>
														<tr>
															<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
														</tr>
														<tr>
															<td>
																<table border="0" width="100%" cellspacing="0" cellpadding="2">
																	<tr>
																		<td>
																			<table>
																				<tr>
																					<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '10'); ?></td>
																					<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, 'guest=guest', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
																					<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
																				</tr>
																			</table>
																		</td>
																	</tr>
																</table>
															</td>
														</tr>
													</table>
												</td>
											</tr>
										</table>
									</td>
								</tr>
				<?php
				}
				// PWA EOF
				?>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</form>
